fd16c7d5cee6a420a27b461a7b9b50040c7ce9c3,main/src/main/java/com/sedmelluq/discord/lavaplayer/source/youtube/YoutubeAudioSourceManager.java,YoutubeAudioSourceManager,loadMixWithId,#String#String#,442
Before Change
String mixUrl = "https://www.youtube.com/watch?v=" + selectedVideoId + "&list=" + mixId;
try (CloseableHttpResponse response = httpInterface.execute(new HttpGet(mixUrl))) {
if (response.getStatusLine().getStatusCode() != 200) {
throw new IOException("Invalid status code for mix response.");
}
Document document = Jsoup.parse(response.getEntity().getContent(), CHARSET, "");
After Change
String mixUrl = "https://www.youtube.com/watch?v=" + selectedVideoId + "&list=" + mixId;
try (CloseableHttpResponse response = httpInterface.execute(new HttpGet(mixUrl))) {
int statusCode = response.getStatusLine().getStatusCode();
if (statusCode != 200) {
throw new IOException("Invalid status code for mix response: " + statusCode);
}
Document document = Jsoup.parse(response.getEntity().getContent(), CHARSET, "");